package cn.richard.base.starter

import cn.richard.base.App
import com.wxy.appstartfaster.task.AppStartTask
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.startKoin

/**
 *
 * @ProjectName: PicApp
 * @Author: wuzhiguo@aiforward.com
 * @CreateDate: 2021/9/6 3:07 下午
 * @Description:
 */
class InitKoinTask: AppStartTask() {
    override fun run() {
        startKoin {
            androidLogger()
            androidContext(App.instance)
        }
    }

    override fun isRunOnMainThread(): Boolean {
        return true
    }
}